class Notifier < ActionMailer::Base
  default_url_options[:host] = "dsdruk.no-ip.org/password_resets/edit/"

  def password_reset_instructions(user)
    subject       "Resetowanie hasła DSDruk"
    from          "MAILER-DAEMON>"
    recipients    user.email
    sent_on       Time.now
    body          :edit_password_reset_url => (user.perishable_token)
  end

  def activation_instructions(user)
    subject       "Aktywacja konta w DSDruk"
    from          "MAILER-DAEMON>"
    recipients    user.email
    sent_on       Time.now
    body          :account_activation_url => (user.perishable_token)
  end

  def print_notification(user)
    subject       "Wydrukowano plik w DSDruk"
    from          "MAILER-DAEMON>"
    recipients    user.email
    sent_on       Time.now
    body          :root_url => 'http://dsdruk.no-ip.org/'
  end

end